package com.bum.guru;

import org.apache.log4j.Logger;

import com.asao.baseware.core.DefaultApplication;

public class GuruStarter {
	static Logger	log	= Logger.getLogger(GuruStarter.class);
	private static DefaultApplication	app;

	@SuppressWarnings("rawtypes")
	static void startApplication() {
		log.info("_/_/_/_/_/_/_/_/_/_/ Starting Guru Core Application...");
		try {
			app = new DefaultApplication("config/application.cfg.xml");
			app.setPropertiesLocations(new String[] { "/config/application.properties" });
			app.start();
			log.info("_/_/_/_/_/_/_/_/_/_/ Guru Core Application started!");
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		startApplication();
	}
}
